package com.ibeeking.found.upms.service.common.param;

import com.ibeeking.nematos.utils.base.BaseValidationGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName TenantDO
 * @Description 租户
 * @Author ibeeking
 * @Date 2020-11-18 9:48
 **/
@Data
public class TenantUserParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "Id不能为空", groups = {BaseValidationGroup.Update.class})
    private Long id;

    /**
     * 用户编码
     */
    private String userCode;

    /**
     * 用户姓名
     */
    @NotBlank(message = "用户姓名不能为空", groups = {BaseValidationGroup.Insert.class})
    private String name;
    /**
     * 用户昵称
     */
    private String nickName;
    /**
     * 用户头像
     */
    private String image;
    /**
     * 关联员工Id
     */
    private Long employeeId;
    /**
     * 手机
     */
    @NotBlank(message = "手机号不能为空", groups = {BaseValidationGroup.Insert.class})
    private String mobile;

    /**
     * 电话
     */
    private String tel;

    /**
     * 邮箱
     */
    private String email;

    private String description;

    /**
     * 性别
     */
    @NotNull(message = "性别不能为空", groups = {BaseValidationGroup.Insert.class})
    private Integer sex;
    /**
     * 企业微信授权UserId
     */
    private String wxUserId;
    /**
     * 钉钉授权UserId
     */
    private String dingUserId;

    /**
     * 是否演示用户;0=否；1=是
     */
    private Integer demoUser;
}
